<template>
	<view>
		<!-- number/bdx?num=25&max=5  -->
		<bdxInput :title="tableData"></bdxInput>
	</view>
</template>

<script>
		import {fineyineibdx} from '../../../api/work/study.js'
	export default {
		data() {
			return {
				num: 1,
				max: 10000,
				tableData:[
					{title:'',
					result:'',
					userResult:''
					}
				],
				timer:{},
			};
		},

		computed: {  
		  status() {  //  计算属性
		    return this.$store.state.tableStatus; //  Vuex 中定义的属性
		  }
		},
		watch:{
		  status() {
		    this.next();  //   需要调用的方法
		  }
		},
		mounted() {
			this.settimer()
		},
		methods:{
			next(){
					this.settimer()
			},
			settimer(){
				this.jiafa()
			},
			jiafa(){
				fineyineibdx(this.num,this.max).then(resp=>{
					console.log(resp.data)
					this.tableData = resp.data
				})
			},

		}
	}
</script>

<style lang="scss">

</style>
